package com.zihao.blog.base.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zihao.blog.validator.annotation.IdValid;
import com.zihao.blog.validator.group.Delete;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BaseVO<T> extends PageInfo<T> {

    /**
     * 唯一UID
     */
    @ApiModelProperty(value = "唯一uid")
    @TableId(value = "uid", type = IdType.UUID)
    @IdValid(groups = Delete.class)
    private String uid;

    @ApiModelProperty(value = "唯一uid")
    private Integer status;
}